Skip to content

Add ADR-002: sync/async strategy - #36

Merged
mehmetkr merged 1 commit into
mainfrom
docs/adr-002-sync-async-strategy
Dec 3, 2026
Merged

mehmetkr merged 1 commit into
mainfrom
docs/adr-002-sync-async-strategy

Conversation

@mehmetkr

@mehmetkr mehmetkr commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Documents the decision to use parallel separate sync/async classes (Alternative 5 of 5 evaluated)
  • Evaluates: asyncio.run() wrappers, code generation, shared abstract base, stripe-python _async suffixes, and the chosen parallel classes pattern
  • Includes architecture diagram, shared-vs-duplicated analysis, drift prevention strategy, and quantified duplication (~1,070 lines)
  • All claims verified against actual codebase and model SDK repos (anthropic-sdk-python, openai-python, stripe-python)

Test plan

  • All factual claims verified against source code (class names, file paths, overload counts, test structure, duplication lines)
  • Model repo patterns verified via GitHub (anthropic: separate classes in same file; openai: same; stripe: _async suffixes)
  • CI passes (394 tests, ruff, pyright, mypy)

@mehmetkr
mehmetkr force-pushed the docs/adr-002-sync-async-strategy branch from fb35e02 to 7eb71f8 Compare December 3, 2026 20:24
@mehmetkr
mehmetkr merged commit dea3a7c into main Dec 3, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the docs/adr-002-sync-async-strategy branch December 3, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant